package com.mzj.saas.jobs.bill.entity;


import com.mzj.saas.jobs.commons.IdEntity;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "saas_smart_lock_pwd")
public class SmartLockPwd extends IdEntity {
	@Basic
	@Column(name = "lock_auth_id", nullable = true)
	private Long lockAuthId; // 用户授权id

	@Basic
	@Column(name = "lock_id", nullable = true)
	private Long lockId; // 智能锁绑定id

	@Basic
	@Column(name = "return_pwd_id", nullable = true)
	private Long returnPwdId; // 厂商密码授权id

	@Basic
	@Column(name = "type", nullable = true)
	private Integer type; // 密码生成方式:1自定义 2系统生成

	@Basic
	@Column(name = "auth_type", nullable = true)
	private Integer authType; // 密码设置方式：1永久 2时间期限 3次数

	@Basic
	@Column(name = "auth_time", nullable = true)
	private Date authTime; // 授权时间

	@Basic
	@Column(name = "start_time", nullable = true)
	private Date startTime; // 开始时间

	@Basic
	@Column(name = "end_time", nullable = true)
	private Date endTime; // 结束时间

	@Basic
	@Column(name = "limit_day", nullable = true)
	private Integer limitDay; // 时间期限(天)

	@Basic
	@Column(name = "author_number", nullable = true)
	private Integer authorNumber; // 授权次数

	@Basic
	@Column(name = "times", nullable = true)
	private Integer times; // 剩余次数

	@Basic
	@Column(name = "password", nullable = true)
	private String password; // 密码值

	@Basic
	@Column(name = "pwd_index", nullable = true)
	private Integer pwdIndex; // 密码序号

	@Basic
	@Column(name = "pwd_index_num", nullable = true)
	private Integer pwdIndexNum; // 密码编号

	@Basic
	@Column(name = "status", nullable = true)
	private Integer status; // 0待执行；1已成功；2已失败

	@Basic
	@Column(name = "create_time", nullable = true)
	private Date createTime; // 密码创建时间

	@Basic
	@Column(name = "last_update_time", nullable = true)
	private Date lastUpdateTime; // 最后更新时间

	@Basic
	@Column(name = "f_authorization_id", nullable = true)
	private String fAuthorizationId; // 亚略特授权id

	@Basic
	@Column(name = "f_app_user_id", nullable = true)
	private String fAppUserId; // 亚略特授权用户id

	@Basic
	@Column(name = "identification", nullable = true)
	private String identification;//天网互联标识

	public Long getReturnPwdId() {
		return returnPwdId;
	}

	public void setReturnPwdId(Long returnPwdId) {
		this.returnPwdId = returnPwdId;
	}

	public Long getLockAuthId() {
		return lockAuthId;
	}

	public void setLockAuthId(Long lockAuthId) {
		this.lockAuthId = lockAuthId;
	}

	public Long getLockId() {
		return lockId;
	}

	public void setLockId(Long lockId) {
		this.lockId = lockId;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getAuthType() {
		return authType;
	}

	public void setAuthType(Integer authType) {
		this.authType = authType;
	}

	public Date getAuthTime() {
		return authTime;
	}

	public void setAuthTime(Date authTime) {
		this.authTime = authTime;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Integer getLimitDay() {
		return limitDay;
	}

	public void setLimitDay(Integer limitDay) {
		this.limitDay = limitDay;
	}

	public Integer getAuthorNumber() {
		return authorNumber;
	}

	public void setAuthorNumber(Integer authorNumber) {
		this.authorNumber = authorNumber;
	}

	public Integer getTimes() {
		return times;
	}

	public void setTimes(Integer times) {
		this.times = times;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getPwdIndex() {
		return pwdIndex;
	}

	public void setPwdIndex(Integer pwdIndex) {
		this.pwdIndex = pwdIndex;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getPwdIndexNum() {
		return pwdIndexNum;
	}

	public void setPwdIndexNum(Integer pwdIndexNum) {
		this.pwdIndexNum = pwdIndexNum;
	}

	public String getfAuthorizationId() {
		return fAuthorizationId;
	}

	public void setfAuthorizationId(String fAuthorizationId) {
		this.fAuthorizationId = fAuthorizationId;
	}

	public String getfAppUserId() {
		return fAppUserId;
	}

	public void setfAppUserId(String fAppUserId) {
		this.fAppUserId = fAppUserId;
	}

	public String getIdentification() {
		return identification;
	}

	public void setIdentification(String identification) {
		this.identification = identification;
	}
}
